<?php
namespace Core;

require_once __Dir__ . '/../../simpletest/autorun.php';

class TestOfGetTasks extends \UnitTestCase 
{
	/**
	* Check a correct get tasks
	*/
    function testCorrectGetTasks() 
	{
		$services = new CoreService();
		$result = $services->getTasks(USER_TEST_ID);
		
		$this->assertTrue(count($result->response) > 0);
    }
	
	
	/**
	* Check an invalid get tasks
	*/
    function testInvalidGetTasksByUserNotFound() 
	{
		$services = new CoreService();
		$result = $services->getTasks(-1);
		
		$this->assertTrue(count($result->response) == 0);
    }
}
?>